public class final_project {
    public static void main(String[] args) throws Exception {
        
        int choice;
		menu m = new menu();
		m.printHeader();
		
        student_manage manage = new student_manage();

		choice = m.getChoice();

		while (choice != 8) {
			switch (choice) {
			case 1:
				manage.showAllStudent();				
				break;
			case 2:
				manage.addStudent();
				break;
            case 3:
                manage.deleteStudent();
                break;
            case 4:
                manage.updateStudent();
                break;
			case 5:
				manage.searchStudent();
				break;
			case 6:
				manage.saveToFile();
				break;
			case 7:
				manage.readFromFile();
				break;
			default:
				
			}
			choice = m.getChoice();
        }


    }
}
